package day06;

public class jiaohuan {
    public static void main(String[] args) {
        int arr[]={12,31,46,74,8,9,7};
        int end=arr.length-1;
        for (int i=0;i<end;i++,end--){
            int temp=arr[i];
            arr[i]=arr[end];
            arr[end]=temp;
        }
        for (int i = 0; i <= arr.length-1; i++) {
            System.out.println(arr[i]);
        }

    }
}
